package com.blue.rpc.core.message;

/**
 * RPC响应报文
 * 
 * @author zhengj
 * @since 1.0 2017年3月13日
 */
public class RpcResponse
{
	private byte majorVer = 1;
	private byte minorVer = 0;
	private String requestId; // 请求ID，不重复
	private byte type; // 消息类型：1握手，2心跳，3业务
	private Object result;
	private Exception exception;

	public RpcResponse()
	{
	}

	public byte getMajorVer()
	{
		return majorVer;
	}

	public void setMajorVer(byte majorVer)
	{
		this.majorVer = majorVer;
	}

	public byte getMinorVer()
	{
		return minorVer;
	}

	public void setMinorVer(byte minorVer)
	{
		this.minorVer = minorVer;
	}

	public String getRequestId()
	{
		return requestId;
	}

	public void setRequestId(String requestId)
	{
		this.requestId = requestId;
	}

	public byte getType()
	{
		return type;
	}

	public void setType(byte type)
	{
		this.type = type;
	}

	public Object getResult()
	{
		return result;
	}

	public void setResult(Object result)
	{
		this.result = result;
	}

	public Exception getException()
	{
		return exception;
	}

	public void setException(Exception exception)
	{
		this.exception = exception;
	}

}
